package com.seocoo.worker.friend.module;

import com.seocoo.worker.friend.req.ReqFriendEvaluate;
import com.sfh.lib.mvvm.BaseViewModel;

public class FriendEvaluateModule extends BaseViewModel {

    public void evaluateFriend(ReqFriendEvaluate req) {
        execute(false, req, rsp -> {
            hideLoading();
            if (rsp.success()) {
                showToast(rsp.getMsg());
                setValue("onEvaluateSuccess");
            } else {
                showDialogToast(rsp.getMsg());
            }
        });

    }

}
